import request from '@/utils/request'

export function getInviteCardList() {
  return request({
    url: '/adminMajor/invite/getInviteCardList',
    method: 'get'
  })
}

export function toDelInvite(id) {
  return request({
    url: '/adminMajor/invite/toDelInvite/' + id,
    method: 'get'
  })
}

export function getTheInviteInfo(id) {
  return request({
    url: '/adminMajor/invite/getTheInviteInfo/' + id,
    method: 'get'
  })
}

export function inviteEditSave(data) {
  return request({
    url: '/adminMajor/invite/inviteEditSave',
    method: 'post',
    data
  })
}

export function getCase(query) {
  return request({
    url: '/adminMajor/successCase/getCase',
    method: 'post',
    params: query
  })
}

export function toDelCase(id) {
  return request({
    url: '/adminMajor/successCase/toDelCase/' + id,
    method: 'get'
  })
}

export function getAllCompanyList() {
  return request({
    url: '/adminMajor/successCase/getAllCompanyList',
    method: 'get'
  })
}

export function toGetQrCode(id) {
  return request({
    url: '/adminMajor/successCase/toGetQrCode/' + id,
    method: 'get'
  })
}

export function getCaseDetail(id) {
  return request({
    url: '/adminMajor/successCase/getCaseDetail/' + id,
    method: 'get'
  })
}

export function saveCase(data) {
  return request({
    url: '/adminMajor/successCase/saveCase',
    method: 'post',
    data
  })
}

export function toGetUpdateList(query) {
  return request({
    url: '/adminMajor/sysUpdate/getUpdateList',
    method: 'post',
    params: query
  })
}

export function toDelUpdate(id) {
  return request({
    url: '/adminMajor/sysUpdate/toDelUpdate/' + id,
    method: 'get'
  })
}

export function toGetTheUpdate(id) {
  return request({
    url: '/adminMajor/sysUpdate/getTheUpdate/' + id,
    method: 'get'
  })
}

export function saveUpdate(data) {
  return request({
    url: '/adminMajor/sysUpdate/saveUpdate',
    method: 'post',
    data
  })
}

